package cn.usts.edu.snake;

import javax.swing.*;

public class StartGame {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.setTitle("贪吃蛇小游戏");
        frame.setBounds(10,10,900,720);
        frame.setResizable(false); // 不可以修改大小
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        // 添加组件
        frame.add(new GamePanel());

        frame.setVisible(true);// 一定要放最后!!!!!!!

    }
}
